package edu.hubu.book.domain;

public class ExtendBook extends Book {
    private String firstClassName;
    private String secondClassName;

    public ExtendBook(String bookName, String imgUrl, double price, double discount, String author, String publishingHouse, int sid, int ssid, String description, String firstClassName, String secondClassName) {
        super(bookName, imgUrl, price, discount, author, publishingHouse, sid, ssid, description);
        this.firstClassName = firstClassName;
        this.secondClassName = secondClassName;
    }

    public ExtendBook(int bid, String bookName, String imgUrl, double price, double discount, String author, String publishingHouse, int sid, int ssid, String description, String firstClassName, String secondClassName) {
        super(bid, bookName, imgUrl, price, discount, author, publishingHouse, sid, ssid, description);
        this.firstClassName = firstClassName;
        this.secondClassName = secondClassName;
    }

    @Override
    public String toString() {
        return "ExtendBoox{" + "bid=" + bid + ", bookName='" + bookName + '\'' + ", imgUrl='" + imgUrl + '\'' + ", price=" + price + ", discount=" + discount + ", author='" + author + '\'' + ", publishingHouse='" + publishingHouse + '\'' + ", sid=" + sid + ", ssid=" + ssid + ", firstClassName='" + firstClassName + '\'' + ", secondClassName='" + secondClassName + '\'' + '}';
    }

    public String getFirstClassName() {
        return firstClassName;
    }

    public void setFirstClassName(String firstClassName) {
        this.firstClassName = firstClassName;
    }

    public String getSecondClassName() {
        return secondClassName;
    }

    public void setSecondClassName(String secondClassName) {
        this.secondClassName = secondClassName;
    }
}